var img = new Array;

function updateFlyer(newURL) {
	alert('prova!' + newURL);
	$.ajax({
		  url: 'http://localhost:8080/dropin/EventActionServlet?action=flyer&newURL=' + newURL,
		  success: function(response) {
		  }
		});
}

function updateProfilePic(newURL) {
	alert('prova!' + newURL);
	$.ajax({
		  url: 'http://localhost:8080/dropin/ChangeProfilePicServlet?newURL=' + newURL,
		  success: function(response) {
		  }
		});
}